import {
	request
} from "@/api/utils/request.js";

import * as conmmonUtil from '@/api/utils/common';

// 获取用户信息
export const getUserInfo = () => {
	return request({
		url: "/userapi/getUser",
		method: "GET"
	})
}


// 获取商品列表信息
export const getProductList = (data) => {
	return request({
		url: "/payapi/payProduct/getList" + "/" + data,
		method: "GET"
	})
}


// 获取支付渠道列表信息
export const getChannelList = (data) => {
	return request({
		url: "/payapi/payChannel/getList",
		method: "POST",
		data: data
	})
}



// 获取支付渠道列表信息
export const createPayOrder = (data) => {
	return request({
		url: "/payapi/order/createPayOrderWithSign",
		method: "POST",
		data: data
	})
}